* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

ul {
  width: 60%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li {
  list-style: none;
}
span {
  position: relative;
  display: block;
  margin: 10px;
  /* color: aqua; */
  padding: 5px 20px;
  text-decoration: none;
  transition: all 0.8s;
}

span:hover {
  background-color: orange;
}

span::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid orange;
  border-width: 0 0 2px 2px;
  left: 0;
  bottom: 0;
  opacity: 0;
  transition: 0.2s;
}
span::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid orange;
  border-width: 2px 2px 0 0;
  top: 0;
  right: 0;
  opacity: 0;
  transition: all 0.2s;
}

span:hover::before {
  left: -12px;
  bottom: -12px;
  opacity: 1;
}

span:hover::after {
  top: -12px;
  right: -12px;
  opacity: 1;
}
